package cease.vo;

import net.sf.json.JSONObject;
import cease.json.JSONUtil;

/**
 * @author dhf
 */
public class UserInfo {
    private String id;

    private String screenName;

    private String nickName;

    // "省份,市区"
    private String location;

    // 1：男；2：女
    private int gender;

    private String description;

    // 头像url
    private String avatarURL;

    // 博客url
    private String URL;

    // 应该是微博账号的创建时间（也有可能是urs账号创建时间，没有去考究验证）
    private String createdTime;

    // 不知道啥来的，暂时放着
    private String tips;

    private int followingCount;

    private int followerCount;

    // 发表的微博条数
    private int butterCount;

    // 生日，应该是有个算法将用户生日映射成一个数字，算法没有去研究
    private String birthday;

    // 用户的微博设置信息
    private Config config;

    // 暂时没搞明白这个东西的含义
    private Butter status;

    // 关联的服务个数
    private int connectedServices;

    // 关注关系
    private Boolean following;

    private Boolean followed;

    private Boolean blocking;

    private String lastActiveTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScreenName() {
        return screenName;
    }

    public void setScreenName(String screenName) {
        this.screenName = screenName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAvatarURL() {
        return avatarURL;
    }

    public void setAvatarURL(String avatarURL) {
        this.avatarURL = avatarURL;
    }

    public String getURL() {
        return URL;
    }

    public void setURL(String uRL) {
        URL = uRL;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public int getFollowingCount() {
        return followingCount;
    }

    public void setFollowingCount(int followingCount) {
        this.followingCount = followingCount;
    }

    public int getFollowerCount() {
        return followerCount;
    }

    public void setFollowerCount(int followerCount) {
        this.followerCount = followerCount;
    }

    public int getButterCount() {
        return butterCount;
    }

    public void setButterCount(int butterCount) {
        this.butterCount = butterCount;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Config getConfig() {
        return config;
    }

    public void setConfig(Config config) {
        this.config = config;
    }

    public Butter getStatus() {
        return status;
    }

    public void setStatus(Butter status) {
        this.status = status;
    }

    public int getConnectedServices() {
        return connectedServices;
    }

    public void setConnectedServices(int connectedServices) {
        this.connectedServices = connectedServices;
    }

    public Boolean getFollowing() {
        return following;
    }

    public void setFollowing(Boolean following) {
        this.following = following;
    }

    public Boolean getFollowed() {
        return followed;
    }

    public void setFollowed(Boolean followed) {
        this.followed = followed;
    }

    public Boolean getBlocking() {
        return blocking;
    }

    public void setBlocking(Boolean blocking) {
        this.blocking = blocking;
    }

    public String getLastActiveTime() {
        return lastActiveTime;
    }

    public void setLastActiveTime(String lastActiveTime) {
        this.lastActiveTime = lastActiveTime;
    }

    @Override
    public String toString() {
        return JSONObject.fromObject(this, JSONUtil.getJsonConfig()).toString();
    }
}
